import {
  HasMimeType,
  IsFile,
  MaxFileSize,
  MemoryStoredFile,
} from "nestjs-form-data";

export class ImageDTO {
  @IsFile()
  @MaxFileSize(1024 * 1024 * 5) // 5MB
  @HasMimeType("image/*")
  img: MemoryStoredFile;
}
